home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_bab_truckjump.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  104 lines

  1. # Jones 3D Cog Script
  2. #
  3. # BAB_truckjump.cog
  4. #
  5. # Babylon entry gate truck puzzle.
  6. #
  7. #
  8. # [SXC]
  9. #
  10. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  11. # ========================================================================================
  12.  
  13. symbols
  14. end
  15.  
  16. # ========================================================================================
  17. code
  18.  
  19. startup:
  20.         truck0 = CreateThing(truck, truck0pos);    //create entering truck
  21.         CaptureThing(truck0);
  22.         truck1 = CreateThing(truck, truck1pos);    //create exiting truck
  23.         CaptureThing(truck1);
  24. return;
  25.  
  26. # ........................................................................................
  27. activate:
  28.  
  29. if (GetSenderRef() == startswitch)
  30. {
  31.    MoveToFrame(truck0, lastframenum);
  32. }
  33. return;
  34.  
  35. # .......................................................................................
  36. arrived:
  37.  
  38. if ((GetSenderRef() == truck0) &&
  39.      (GetCurFrame(truck0) == lastframenum))
  40. {
  41.     //move truck1 through reverse frames.
  42. }
  43.  
  44. // stop truck in front of first gate
  45. if ((GetSenderRef() == truck0) &&                    
  46.      (CetCurFrame(truck0) == gate0frame))
  47. {
  48.     PathMovePause(truck0);
  49.     MoveToFrame(gate0, 1, gatespeed);
  50.     MoveToFrame(gate1, 1, gatespeed);
  51.     WaitForStop(gate0);
  52.     PathMoveResume(truck0);
  53. }
  54.  
  55. // stop truck after gate and continue
  56. if ((GetSenderRef() == truck0) &&
  57.     (GetCurFrame(truck0) == gate0post))
  58. {
  59.    PathMovePause(truck0);
  60.     MoveToFrame(gate0, 0, gatespeed);
  61.     MoveToFrame(gate1, 0, gatespeed);
  62.     WaitForStop(gate0);
  63.     PathMoveResume(truck0);
  64. }
  65.  
  66. // stop truck in front of second gate
  67. if ((GetSenderRef() == truck0) &&                    
  68.      (CetCurFrame(truck0) == gate1frame))
  69. {
  70.     PathMovePause(truck0);
  71.     MoveToFrame(gate0, 1, gatespeed);
  72.     MoveToFrame(gate1, 1, gatespeed);
  73.     WaitForStop(gate0);
  74.     PathMoveResume(truck0);
  75. }
  76.  
  77. // stop truck in after gate and finish sequence
  78. if ((GetSenderRef() == truck0) &&
  79.     (GetCurFrame(truck0) == gate1post))
  80. {
  81.    PathMovePause(truck0);
  82.     MoveToFrame(gate0, 0, gatespeed);
  83.     MoveToFrame(gate1, 0, gatespeed);
  84.     WaitForStop(gate0);
  85.     PathMoveResume(truck0);
  86. }
  87.  
  88.  
  89.  
  90. # .......................................................................................
  91. entered:
  92.  
  93. if (GetSenderRef() ==(GetLocalPlayerThing()))
  94. {
  95.     //stop creation loop
  96.     //take control of camera
  97.     //put indy in crouch position
  98.     //return control when cutscene is finished playing
  99. }
  100.  
  101.  
  102.  
  103.  
  104.